/**
 * video event
 * Copyright (c) 2009 cmiscm.com
 * date of final modification : 2009. 11. 20 
*/
package com.cmiscm.videos.events
{
	import flash.events.Event;

	public class VideoEvent extends Event
	{
		public static const ADD_BUFFER:String = "add_buffer";
		public static const REMOVE_BUFFER:String = "remove_buffer";
		public static const START_VIDEO:String = "start_video";
		public static const FINISH_VIDEO:String = "finish_video";
		public static const ERROR_VIDEO:String = "error_video";
		
		public static const CHANGE_MODE:String = "change_mode";
		
		public var mode:int;
		
		public function VideoEvent(type:String, $mode:int=0, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			super(type, bubbles, cancelable);
			this.mode = $mode;
		}
		
		override public function clone():Event
		{
			return new VideoEvent(this.type, this.mode, this.bubbles, this.cancelable);
		}
	}
}